You are here: Trading System Programming > Reference > Callback Functions > Trading System Callback Functions Overview

Trading System Callback Functions Overview

Callback functions are used for handling calls from ActiveTick to JavaScript implementation of various functions.

Function Table
init() This is the callback function in which trading system sets up its configuration.
onOrder(order, orderResults) This callback function gets called whenever ActiveTick receives a response from a trading broker to previously placed order.
onOrderCancel(order, orderResults) This callback function gets called whenever ActiveTick receives a response from a trading broker to previously canceled order.
onOrderExecution(execution) This callback function gets called whenever ActiveTick receives an execution from a trading broker for previously placed order.
onOrderModify(previousOrder, newOrder, orderResults) This callback function gets called whenever ActiveTick receives a response from a trading broker to previously placed order modify request.
start() This is the main callback function where all calculations for a trading system are performed and its results are updated.

 


Copyright © 2006-2009 ActiveTick LLC